<template>
  <div class="hm-bread">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>{{title }}</el-breadcrumb-item>
  </el-breadcrumb>
  </div>
</template>

<script>
export default {
  computed: {
    title () {
      if (this.$route.path === '/post-publish') {
        return '文章发布'
      }
      if (this.$route.path === '/post-list') {
        return '文章列表'
      }
      return ''
    }
  }
}
</script>

<style>

</style>
